package com.example.guiguiapplicatio.placeholder;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class RecordPlaceholderContent {

    /**
     * An array of sample (placeholder) items.
     */
    public static final List<PlaceholderItem> ITEMS = new ArrayList<PlaceholderItem>();

    /**
     * A map of sample (placeholder) items, by ID.
     */
    public static final Map<String, PlaceholderItem> ITEM_MAP = new HashMap<String, PlaceholderItem>();

    public static void addItem(PlaceholderItem item) {
        ITEMS.add(item);
        ITEM_MAP.put(item.idcard, item);
    }

    /**
     * A placeholder item representing a piece of content.
     */
    public static class PlaceholderItem implements Serializable {
        private String idcard;
        private String name;
        private String sex;
        private Integer age;
        private String detailedresidence;
        private List<String> listenername;
        private String phone;
        private Integer status;
        private Integer recordTotal;
        private Integer recordSearchCount;

        public PlaceholderItem(String idcard, String name, String sex, Integer age,
                               String detailedresidence, List<String> listenername, String phone, Integer status,Integer recordTotal,Integer recordSearchCount) {
            this.idcard = idcard;
            this.name = name;
            this.sex = sex;
            this.age = age;
            this.detailedresidence = detailedresidence;
            this.listenername = listenername;
            this.phone = phone;
            this.status = status;
            this.recordTotal=recordTotal;
            this.recordSearchCount=recordSearchCount;
        }

        public String getIdcard() {
            return idcard;
        }

        public String getName() {
            return name;
        }

        public String getSex() {
            return sex;
        }

        public Integer getAge() {
            return age;
        }

        public String getDetailedresidence() {
            return detailedresidence;
        }

        public List<String> getListenername() {
            return listenername;
        }

        public String getPhone() {
            return phone;
        }

        public Integer getStatus() {
            return status;
        }

        public Integer getRecordTotal() {
            return recordTotal;
        }

        public Integer getRecordSearchCount() {
            return recordSearchCount;
        }
    }
}
